﻿using SalesSys.DAL.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.AccessControl;
using System.Text;
using System.Threading.Tasks;

namespace SalesSys.DAL.Models
{
    /// <summary>
    /// 客户余额表
    /// </summary>
  public  class CustomerBalance : DbEntityBase<Guid>
    {
      public CustomerBalance()
        {
            
        }
      /// <summary>
      /// 客户经理
      /// </summary>
      public Guid EmployeeId { get; set; }
      /// <summary>
      /// 客户
      /// </summary>
      public Guid CustomerId { get; set; }
      /// <summary>
      /// 户头
      /// </summary>
      public Guid? AccountId { get; set; }
      /// <summary>
      /// 余额
      /// </summary>
      public decimal Balance { get; set; }
      /// <summary>
      /// 备注
      /// </summary>
      public string Remark { get; set; }

      public class Mapper : SalMapper<CustomerBalance, Guid>
      {
          public Mapper()
          {
              Property(p => p.EmployeeId);
              Property(p => p.CustomerId);
              Property(p => p.AccountId);
              Property(p => p.Balance);
              Property(p => p.Remark);
          }
      }
    }
}
